package com.amazon.shop.bean.enums;

/**
 * 创建时间：10:41 2021/1/13
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
public enum  ResultEnum {

    /**
     * 成功
     */
    SUCCESS("0","0","SUCCESS"),
    /**
     * 失败
     */
    FAILURE("-1","-1","FAILURE"),
    ADDERROR("-1","-1","添加失败"),
    UPDATEERROR("-1","-1","修改失败"),
    DELERROR("-1","-1","删除失败"),
    LOGIN_ERROR("-1","-123","用户未登录"),

    IPINTERCEPT("-1","999","当前地区不可提交"),

    SUBEVALUATEERROR1("-1","1001","兑换码不存在"),
    SUBEVALUATEERROR2("-1","1002","该订单已提交"),
    SUBEVALUATEERROR3("-1","1003","无可导出数据"),
    STOREEERROR("-1","1004","商店不存在"),
    EXISTERROR("-1","1005","数据已存在"),

    USERNOTEXIST("-1","1006","用户不存在"),
    PWDERROR("-1","1007","密码错误"),
    USERERROR("-1","1008","用户不存在"),
    USERDISABLED("-1","1009","账号被禁用"),
    ;

    private String msg;
    private String code;
    private String servecode;

    ResultEnum(String code,String servecode, String msg) {
        this.code = code;
        this.servecode = servecode;
        this.msg = msg;
    }
    public void setMessage(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    public String getServecode() {
        return servecode;
    }
}
